const db = require('../mysql/link');

module.exports = {

    query: () => {
        let all = null;
        db.query('select * from user_info', [], (result, fields) => {
            // console.log('查询结果：\r');
            // for (let i = 0; i < result.length; i++) {
            //     console.table(result[i]);
            // }
            all = result;
        });
        return all;
    }
};